package com.sdp.wx.db.wx_wz_now_num.service;

import com.sdp.wx.db.wx_wz_now_num.entity.WxWzNowNum;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zsp
 * @since 2024-01-29
 */
public interface IWxWzNowNumService extends IService<WxWzNowNum> {
	
	List<WxWzNowNum> queryWzNowNumByWzCodes(List<String> wzNos,String warehouseCode);
	
	List<WxWzNowNum> queryWzNowNumByWarehouseCode(String warehouseCode);

	/**
	 * 库存增加
	 * @param wzCodeList
	 * @param wzInputNumMap
	 */
	void wzNowNumAdd(List<String> wzCodeList,Map<String,BigDecimal> wzInputNumMap,String warehouseCode);
	
	/**
	 * 库存减少
	 * @param wzCodeList
	 * @param wzInputNumMap
	 */
	void wzNowNumSubtract(List<String> wzCodeList,Map<String,BigDecimal> wzOutputNumMap,String warehouseCode);
	
	
	/**
	 * 查询库存预警
	 * @param queryWrapper
	 * @return
	 */
	int wzAlertNumber();
	
}
